﻿using System;
using System.IO.IsolatedStorage;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace RemoteControl
{
    public static class IPEndPointStorage
    {
        private const string Key = "ipaddress";
        public const int Port = 8012;

        public static string IPAddress
        {
            get
            {
                string ipAddress;
                return IsolatedStorageSettings.ApplicationSettings.TryGetValue(Key, out ipAddress) ? ipAddress : null;
            }
            set { IsolatedStorageSettings.ApplicationSettings[Key] = value; }
        }

    }
}
